package com.zf.gateway.downstream.controller;

import com.zf.common.core.result.RestResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 日志记录测试
 * 测试 配置的 {@link com.zf.common.web.trace_log.LogTraceIdFilter} 是否生效
 */
@Slf4j
@RestController
@RequestMapping("/log")
public class LogTestController {

    @GetMapping("/traceId")
    public RestResponse<Void> getTraceId() {
        log.info("测试traceId");
        return RestResponse.success();
    }
}
